Motion Clouds: testing components of the envelope

In [1]:
import numpy as np
np.set_printoptions(precision=3, suppress=True)
import pylab
import matplotlib.pyplot as plt
%matplotlib inline
  Hide output
In [2]:
import os, sys
sys.path.append('..')
import MotionClouds as mc
fx, fy, ft = mc.get_grids(mc.N_X, mc.N_Y, mc.N_frame)
#mc.recompute = True
mc.notebook = True
  Hide output

Testing the color

In [3]:
%bookmark root
  Hide output
In [4]:
%cd..
  Hide output
/Users/lolo/Dropbox/science/MotionClouds

In [5]:
%run test_color.py
  Hide output
WARNING:traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator.

Could not import Mayavi
color

color-alpha-0_0

color-alpha-0_5

color-alpha-1_0

color-alpha-1_5

color-alpha-2_0

color-ft_0-0_125

color-ft_0-0_25

color-ft_0-0_5

color-ft_0-1_0

color-ft_0-2_0

color-ft_0-4_0

color-ft_0-inf

[6350 %] elapsed[sec]: 0.958 | ETA[sec]: -0.943 
Saving sequence color-contrast-0_1.mp4
Title: 
                      Started: 06/18/2014 17:29:41
                      Finished: 06/18/2014 17:29:42
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-contrast-0_25.mp4
[6350 %] elapsed[sec]: 0.670 | ETA[sec]: -0.659 

Title: 
                      Started: 06/18/2014 17:29:44
                      Finished: 06/18/2014 17:29:44
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-contrast-0_5.mp4
[6350 %] elapsed[sec]: 0.602 | ETA[sec]: -0.592 

Title: 
                      Started: 06/18/2014 17:29:46
                      Finished: 06/18/2014 17:29:46
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-contrast-0_75.mp4
[6350 %] elapsed[sec]: 0.593 | ETA[sec]: -0.584 

Title: 
                      Started: 06/18/2014 17:29:48
                      Finished: 06/18/2014 17:29:48
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-contrast-1_0.mp4
[6350 %] elapsed[sec]: 0.584 | ETA[sec]: -0.575 

Title: 
                      Started: 06/18/2014 17:29:49
                      Finished: 06/18/2014 17:29:50
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-contrast-2_0.mp4
[6350 %] elapsed[sec]: 0.575 | ETA[sec]: -0.566 

Title: 
                      Started: 06/18/2014 17:29:51
                      Finished: 06/18/2014 17:29:52
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-0_1.mp4
[6350 %] elapsed[sec]: 0.612 | ETA[sec]: -0.602 

Title: 
                      Started: 06/18/2014 17:29:53
                      Finished: 06/18/2014 17:29:54
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-0_25.mp4
[6350 %] elapsed[sec]: 0.612 | ETA[sec]: -0.603 

Title: 
                      Started: 06/18/2014 17:29:55
                      Finished: 06/18/2014 17:29:56
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-0_5.mp4
[6350 %] elapsed[sec]: 0.578 | ETA[sec]: -0.569 

Title: 
                      Started: 06/18/2014 17:29:57
                      Finished: 06/18/2014 17:29:57
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-0_75.mp4
[6350 %] elapsed[sec]: 0.651 | ETA[sec]: -0.641 

Title: 
                      Started: 06/18/2014 17:29:59
                      Finished: 06/18/2014 17:29:59
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-1_0.mp4
[6350 %] elapsed[sec]: 0.645 | ETA[sec]: -0.635 

Title: 
                      Started: 06/18/2014 17:30:01
                      Finished: 06/18/2014 17:30:01
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-energy_contrast-2_0.mp4
[6350 %] elapsed[sec]: 0.805 | ETA[sec]: -0.792 

Title: 
                      Started: 06/18/2014 17:30:03
                      Finished: 06/18/2014 17:30:03
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123456.mp4
[6350 %] elapsed[sec]: 0.579 | ETA[sec]: -0.570 

Title: 
                      Started: 06/18/2014 17:30:05
                      Finished: 06/18/2014 17:30:05
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123457.mp4
[6350 %] elapsed[sec]: 0.559 | ETA[sec]: -0.550 

Title: 
                      Started: 06/18/2014 17:30:06
                      Finished: 06/18/2014 17:30:07
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123458.mp4
[6350 %] elapsed[sec]: 0.595 | ETA[sec]: -0.585 

Title: 
                      Started: 06/18/2014 17:30:08
                      Finished: 06/18/2014 17:30:09
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123459.mp4
[6350 %] elapsed[sec]: 0.559 | ETA[sec]: -0.550 

Title: 
                      Started: 06/18/2014 17:30:10
                      Finished: 06/18/2014 17:30:11
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123460.mp4
[6350 %] elapsed[sec]: 0.576 | ETA[sec]: -0.573 

Title: 
                      Started: 06/18/2014 17:30:12
                      Finished: 06/18/2014 17:30:12
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123461.mp4
[6350 %] elapsed[sec]: 0.653 | ETA[sec]: -0.643 

Title: 
                      Started: 06/18/2014 17:30:14
                      Finished: 06/18/2014 17:30:14
                      Total time elapsed: 0.000 sec

[  0 %] elapsed[sec]: 0.000

Saving sequence color-seed-123462.mp4
[6350 %] elapsed[sec]: 0.729 | ETA[sec]: -0.718 

Title: 
                      Started: 06/18/2014 17:30:16
                      Finished: 06/18/2014 17:30:16
                      Total time elapsed: 0.000 sec
color-size-5

color-size-6

color-size_T-5

color-size_T-6

Testing the speed

In [6]:
%run test_speed.py
  Hide output
speed

speed-V_X--1_0

speed-V_X--0_5

speed-V_X-0_0

speed-V_X-0_1

speed-V_X-0_5

speed-V_X-1_0

speed-V_X-4_0

speed-V_Y--1_0

speed-V_Y--0_5

speed-V_Y-0_5

speed-V_Y-1_0

speed-V_Y-2_0

speed-B_V-0_001

speed-B_V-0_01

speed-B_V-0_05

speed-B_V-0_1

speed-B_V-0_5

speed-B_V-1_0

speed-B_V-10_0

Exploring the orientation component of the envelope around a grating.

In [7]:
%run test_grating.py
  Hide output
grating

grating-sparseness-0_9

grating-sparseness-1_34285714286

grating-sparseness-1_78571428571

grating-sparseness-2_22857142857

grating-sparseness-2_67142857143

grating-sparseness-3_11428571429

grating-sparseness-3_55714285714

grating-sparseness-4_0

grating-largeband-B_theta-pi-over-1

grating-largeband-B_theta-pi-over-2

grating-largeband-B_theta-pi-over-3

grating-largeband-B_theta-pi-over-5

grating-largeband-B_theta-pi-over-8

grating-largeband-B_theta-pi-over-13

grating-theta-pi-over-1

grating-theta-pi-over-2

grating-theta-pi-over-4

grating-theta-pi-over-3

grating-theta-pi-over-5

grating-theta-pi-over-8

grating-theta-pi-over-13

grating-theta-pi-over-20

grating-theta-pi-over-30

grating-B_theta-pi-over-1-V_X-1_0

grating-B_theta-pi-over-2-V_X-1_0

grating-B_theta-pi-over-3-V_X-1_0

grating-B_theta-pi-over-5-V_X-1_0

grating-B_theta-pi-over-8-V_X-1_0

grating-B_theta-pi-over-13-V_X-1_0

grating-B_sf-0_05

grating-B_sf-0_1

grating-B_sf-0_15

grating-B_sf-0_2

grating-B_sf-0_3

grating-B_sf-0_4

grating-B_sf-0_8

In [8]:
%run test_radial.py
  Hide output
radial

radial-B_sf-0_01

radial-B_sf-0_0334965439158

radial-B_sf-0_11220184543

radial-B_sf-0_375837404288

radial-B_sf-1_25892541179

radial-B_V-0_001

radial-B_V-0_01

radial-B_V-0_05

radial-B_V-0_1

radial-B_V-0_5

radial-B_V-1_0

radial-B_V-10_0

radial-sf_0-0_01

radial-sf_0-0_05

radial-sf_0-0_1

radial-sf_0-0_2

radial-sf_0-0_4

radial-sf_0-0_8

radial-sf_0_nologgabor-0_01

radial-sf_0_nologgabor-0_05

radial-sf_0_nologgabor-0_1

radial-sf_0_nologgabor-0_2

radial-sf_0_nologgabor-0_4

radial-sf_0_nologgabor-0_8

radial-seed-123456

radial-seed-123456

radial-seed-123457

radial-seed-None

radial-seed-None

radial-V_X-0_0

radial-V_X-0_5

radial-V_X-1_0

radial-V_X--1_0

In [9]:
%cd -b root
  Hide output
(bookmark:root) -> /Users/lolo/Dropbox/science/MotionClouds/posts
/Users/lolo/Dropbox/science/MotionClouds/posts